package com.zmzncs.lmtc.module.shop.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zmzncs.lmtc.module.shop.pojo.shop_slide_show.ShopSlideShow;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zmzncs.lmtc.module.shop.pojo.shop_slide_show.ShopSlideShowDTO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 商户-轮播图 Mapper 接口
 * </p>
 *
 * @author 高博文
 * @since 2021-05-28
 */
@Repository
@Mapper
public interface ShopSlideShowDao extends BaseMapper<ShopSlideShow> {

    /**查询最大排序编号*/
    Integer getMaxSort();

    /**分页查询轮播图*/
    IPage<ShopSlideShowDTO> getShopSlideShowPage(Page page);

    /**根据ID查询轮播图*/
    ShopSlideShowDTO getShopSlideShowInfo(Long showId);
}
